<?php 
$jtodel = json_decode($_GET['json']);

$database = mysql_connect("localhost", "root", "root");
if(!$database){
		echo "<br>Not Connected";
	} else {
		foreach($jtodel as $jtd)
		{
			$query = "UPDATE tweets SET `deleted` = '1' WHERE `id` = '".$jtd."'";
			$select = mysql_select_db('streamtube', $database);
			$reply = mysql_query($query);
		}
	}
mysql_close();
?>